/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 持卡人表（会员卡）
 *
 * @author csg
 * @date 2021-05-21 14:22:59
 */
@Data
@TableName("v_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "持卡人表（会员卡）")
public class VInfo extends Model<VInfo> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 企业客户id
     */
    @ApiModelProperty(value="企业客户id")
    private Long entId;
    /**
     * 0活动卡1福利卡
     */
    @ApiModelProperty(value="0活动卡1福利卡")
    private Integer cType;
    /**
     * 活动ID
     */
    @ApiModelProperty(value="活动ID")
    private Long activityId;
    /**
     * 卡id
     */
    @ApiModelProperty(value="卡id")
    private Long cardId;
    @ApiModelProperty(value="订单id")
    private Long orderId;
    /**
     * 卡订单id
     */
    @ApiModelProperty(value="卡订单id")
    private Long orderCardId;
    /**
     * 持卡人id
     */
    @ApiModelProperty(value="持卡人id")
    private Long personId;
     /**
     * 企业员工名称
     */
    @ApiModelProperty(value="企业员工名称")
    private String entStaffName;
    /**
     * 状态:0正常1禁用
     */
    @ApiModelProperty(value="状态:0正常1禁用")
    private Integer status;
    /**
     * 开卡时间
     */
    @ApiModelProperty(value="开卡时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime openCardTime;
    /**
     * 会员卡卡号
     */
    @ApiModelProperty(value="会员卡卡号")
    private String vipAccount;
    /**
     * 核销码
     */
    @ApiModelProperty(value="核销码")
    private String useCode;
    /**
     * 累计消费金额
     */
    @ApiModelProperty(value="累计消费金额")
    private BigDecimal totalMoney;
    /**
     * 累计实付金额
     */
    @ApiModelProperty(value="累计实付金额")
    private BigDecimal totalActMoney;
    @ApiModelProperty(value="累计核销次数")
    private Integer useNum;
    /**
     * 开始时间（活动卡：取卡的时间，嗨吃卡取合作时间）
     */
    @ApiModelProperty(value="开始时间（活动卡：取卡的时间，嗨吃卡取合作时间）")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;
    /**
     * 结束时间（活动卡：取卡的时间，嗨吃卡取合作时间）
     */
    @ApiModelProperty(value="结束时间（活动卡：取卡的时间，嗨吃卡取合作时间）")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
